using Microsoft.AspNetCore.Mvc.RazorPages;

namespace CRM.Views.ViewTest
{
    public class Info
    {
        public Info(string name, string url, string desc)
        {
            this.name = name.Replace("\"", "").Replace("\'", ""); 
            this.url = url.Replace("\"", "").Replace("\'", "");
            this.desc = desc.Replace("\"", "").Replace("\'", "");
        }
        public Info(string name, string url) : this(name, url, $"[{name}]({url})") { }
        public string name;
        public string url;
        public string desc;
        public override string ToString()
        {
            return $"'{name}','{url}','{desc}'";
        }
    }
    public class Index : PageModel
    {
        public void OnGet()
        {
        }
    }
}
